package com.woniu.micropropertyserver.feign.controller;

import com.woniu.microcommonsserver.entity.BuildInfoEntity;
import com.woniu.microcommonsserver.param.ResponseMsg;
import com.woniu.micropropertyserver.feign.service.MicroProjectServerFeign;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;

/**
 * @author ：bb
 * @date ：Created in 2021/2/3 0003
 * @description：
 * @modified By：
 * @version: $
 */
@RestController
@RequestMapping("/buildFeign")
public class FeignBuildController {
    @Resource
    private MicroProjectServerFeign microProjectServerFeign;
    /**
     * 摊位竞拍列表
     * @return
     */
    @GetMapping(value="/all",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findAll(){
         ResponseMsg str = microProjectServerFeign.findAll();
        return str;
    }
    @GetMapping(value="/id",produces = MediaType.APPLICATION_JSON_VALUE)
    public ResponseMsg findById(String id){
        ResponseMsg str = microProjectServerFeign.findById(id);
        return str;
    }
}
